package org.example.library.reservation;

public class ReserveBook{
	
	public BookReservationResponse reserveBook(String bookID, String userID) {
		
		// BookResevation Login is here
		boolean isBookReserved = Math.random() > 0.5 ;
		if(isBookReserved)
		{
			return new BookReservationResponse(bookID, true, "Book succesfully Reserved");
		}else
		{
			return new BookReservationResponse(bookID, false, "Book is not available for reservation");
		}
		
	}

}